<template>
  <div id="app">
      <div class="page-wrap">
          <mt-tab-container  v-model="selected">
                <mt-tab-container-item id="搜索">
      	            <hot></hot>
                </mt-tab-container-item>

                <mt-tab-container-item id="首页">
                    <router-view></router-view>
                </mt-tab-container-item>

                <mt-tab-container-item id="我的">
                    <personalCenter></personalCenter>
                </mt-tab-container-item>
          </mt-tab-container>
      </div>

      <mt-tabbar v-model="selected" fixed>
          <mt-tab-item id="搜索" class="zhidao">
                      <img slot="icon" src="assets/tabbar3.png">
                    活动区
                  </mt-tab-item>
                   <mt-tab-item id="首页" class="zhidao">
              <img slot="icon" src="assets/tabbar1.png">
              首页
          </mt-tab-item>


          <mt-tab-item id="我的" class="zhidao">
              <img slot="icon" src="assets/tabbar4.png">
             个人中心
          </mt-tab-item>
      </mt-tabbar>
  </div>
</template>

<script>
import index from './components/passage.vue'
import personalCenter from './components/personalCenter.vue'
import hot from './components/activity.vue'
import search from './components/chaxun.vue'

export default {
    name: 'app',
    data () {
        return {
            selected:"首页"
        }
    },
    methods: {
        startHacking () {
            this.$toast('It Works!')
        }
    },
    components: {
        index,
        personalCenter,
        hot,
        search
    }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 40px;
}

h1, h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: gray;
  cursor:pointer;
}
</style>

